package com.four.marketing.feign;

import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:wsy
 * @Date: 2021/12/14/15:22
 * @Description
 */
@FeignClient("four-shop")
@RequestMapping("shop")
public interface ShopFeginService {

    /**
     * 查询所有的商品
     * @return
     */
    @GetMapping("/manage/findAllManage")
    public R findAllManage();

    /**
     * 根据id查询商品
     * @param manId
     * @return
     */
    @GetMapping("/manage/getShopById/{manId}")
    public R getShopById(@PathVariable("manId") Integer manId);

    @GetMapping("/manage/shopList")
    R shopList();

    /**
     * 根据id查询图片
     * @param id
     * @return
     */
    @GetMapping("/pricture/getPictureById/{id}")
    public R getPictureById(@PathVariable("id")Integer id);
}
